home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 1
/
PC World Interactive 1 - Nisan 1997.iso
/
nostalji
/
bbs
/
prog
/
webtrial.exe
/
WBSMISC.QIP
/
DEMOINDX.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-06-14
|
789b
|
33 lines
rem
rem ****************
rem * DEMOINDX.BAT *
rem ****************
rem
rem Offers an ISINDEX document if no query arguments,
rem else reports on the "results" of the query.
rem
set of=%output_file%
if NOT %#==0 goto shoquery
rem
rem No query, signal server to do redirect to ISINDEX demo doc.
rem
echo Location: /demo/isindex.htm > %of%
echo. >> %of%
goto done
rem
rem There were query arguments. Generate plain text report (COMMAND.COM)
rem
:shoquery
echo Content-type:text/plain > %of%
echo. >> %of%
echo Here is what the server would have fed to the back-end program: >> %of%
echo. >> %of%
echo Number of query arguments = %# >> %of%
echo. >> %of%
echo Arguments: >> %of%
echo %1 %2 %3 %4 %5 %6 %7 %8 %9 >> %of%
:done
echo -- end of report -- >> %of%